package com.beep.erp.model.stockIn;

import com.beep.erp.common.bean.StockInListBean;
import com.beep.erp.http.HttpRetrofit;
import com.beep.erp.http.RetryWhenNetworkException;

import rx.Observable;

/**
 * Created by Jolly on 2018/8/2.
 */

public class StockInListModel implements StockInListContract.Model {
    @Override
    public Observable<StockInListBean> getStockInList(String sign, String timeStamp, int pageSize, int pageNo) {
        return HttpRetrofit.getInstance().apiService.getStockInList(sign, timeStamp, pageSize, pageNo).compose(HttpRetrofit.toSubscribe()).compose(HttpRetrofit.toTransformer()).retryWhen(new RetryWhenNetworkException());
    }

}
